/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.opgea.qms.domain.model;

import com.opgea.qms.domain.qualifiers.PrefixQualifier;
import java.io.Serializable;
import javax.persistence.Embeddable;


/**
 *
 * @author Ramesh
 */
@Embeddable
public class Person implements Serializable{
    
    
    private PrefixQualifier prefix;
    private Name name;

    public Person(){}
    
    public Person(PrefixQualifier prefix, Name name) {
        this.prefix = prefix;
        this.name = name;
    }


    public Name getName() {
        return name;
    }

    public void setName(Name name) {
        this.name = name;
    }

    public PrefixQualifier getPrefix() {
        return prefix;
    }

    public void setPrefix(PrefixQualifier prefix) {
        this.prefix = prefix;
    }

    @Override
    public String toString() {
        return "Person{" + "prefix=" + prefix + ", name=" + name + '}';
    }

   
    
}
